﻿using Ki.GoogleEarth;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Mother.KiTests.GoogleEarthTests
{
    [TestClass]
    public class LayerTests
    {
        [TestMethod]
        public void BasicCreation()
        {
            var vFile = KMLParts.LayerFile("Layer X", 0, 0, 0, 1, -1, 256);

            Assert.IsNotNull(
                vFile
                    .Element(KMLParts.Namespace + "kml"));

            Assert.IsNotNull(
                vFile
                    .Element(KMLParts.Namespace + "kml")
                    .Element(KMLParts.Namespace + "Document"));
            Assert.IsNotNull(
                vFile
                    .Element(KMLParts.Namespace + "kml")
                    .Element(KMLParts.Namespace + "Document")
                    .Element(KMLParts.Namespace + "GroundOverlay")
                    .Element(KMLParts.Namespace + "Icon")
                    .Element(KMLParts.Namespace + "viewBoundScale"));
        }
    }
}
